package com.yunxitest.yunxitest.item.info

import android.content.Context
import com.yunxitest.yunxitest.Interface.IDetectItem
import com.yunxitest.yunxitest.Interface.IResultCallback

class SysInfoDetectManager(val context: Context, val callback: IResultCallback) : IDetectItem {
    override fun startDetect() {
        val imei = Info.getDeviceId(context)
        if (imei != null) {
            callback.success()
        } else {
            callback.fail("null imei")
        }
    }

    override fun finish() {
        // todo nothing
    }
}